package ONLINE_EXAM;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashSet;
import java.util.Set;

public class test {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str ;
        if (br.readLine() == null){
            System.out.println("");
        }
        while ((str = br.readLine())!= null){
            Set<Character> set = new HashSet<>();
            for (int i =0;i<str.length();i++){
                set.add(str.charAt(i));
            }
            StringBuilder sb = new StringBuilder();
            for (char c:set){
                sb.append(c);
            }
            System.out.println(sb.toString());
        }
    }
}
